package com.jinjia.ordersys.service.impl;

import com.jinjia.ordersys.dao.PrintTokenMapper;
import com.jinjia.ordersys.domain.PrintToken;
import com.jinjia.ordersys.service.PrintTokenService;

import javax.annotation.Resource;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @Description:
 * @Author: fenghouzhi
 * @Date: 2019-04-02 17:03
 */
@Slf4j
@Service
public class PrintTokenServiceImpl implements PrintTokenService {

    @Resource
    private PrintTokenMapper printTokenMapper;

    @Override
    public int insertPrintToken(PrintToken printToken) {
        return printTokenMapper.insertPrintToken(printToken);
    }

    @Override
    public String getPrintToken() {
        return printTokenMapper.getPrintToken();
    }

}